<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns="http://matsadaml.org/msds/v1.0"
	xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
	xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
	xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
	xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
	xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
	xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
	xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
	xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
	xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"
	xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
	xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
	xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
	xmlns:math="http://www.w3.org/1998/Math/MathML"
	xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
	xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
	xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer"
	xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events"
	xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	exclude-result-prefixes="office style text table draw fo xlink dc meta number presentation svg chart dr3d math form script ooo ooow oooc dom xforms xsd xsl">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:strip-space elements="*"/>
    <!--root template-->
	<xsl:template match="/">
		<xsl:apply-templates select="//office:body/office:spreadsheet/table:table"/>
	</xsl:template>
	<!--Create root node-->
	<xsl:template match="table:table[@table:name = 'product']">
		<xsl:processing-instruction name="xml-stylesheet">
			<xsl:text>type="text/xsl" href="../../System/Transformations/msds2xhtml.xsl"</xsl:text>
		</xsl:processing-instruction>
		<product xmlns="http://matsadaml.org/msds/v1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml"
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			xsi:schemaLocation="http://matsadaml.org/msds/v1.0 ../../System/Schema/msds_v1.0.xsd">
			<xsl:attribute name="id">
				<xsl:value-of
					select="table:table-row[preceding-sibling::table:table-row[1]/table:table-cell[1]/text:p = 'Product']/table:table-cell[3]/text:p"
				/>
			</xsl:attribute>
			<xsl:apply-templates/>
		</product>
	</xsl:template>
	<!--Create name nodes-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Name']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<!--The intersecting node set trick from good old Mikey Kay-->
		<xsl:choose>
			<xsl:when test="count($p[count(.|$q) = count($q)]) > 1">
				<xsl:for-each select="$p[count(.|$q) = count($q)]">
					<xsl:if test="position() != 1">
						<name countries="{table:table-cell[2]/text:p}"
							lang="{table:table-cell[3]/text:p}">
							<xsl:value-of select="table:table-cell[4]/text:p"/>
						</name>
					</xsl:if>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<name countries="" lang="en"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!--Create the company node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Company']">
		<company key="{following-sibling::table:table-row[1]/table:table-cell[3]/text:p}"/>
	</xsl:template>
	<!--Create the information node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Information']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<information>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<paragraph pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</paragraph>
				</xsl:if>
			</xsl:for-each>
		</information>
	</xsl:template>
	<!--Create the hazardsIdentification node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Hazards identification']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<hazardsIdentification>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<paragraph pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</paragraph>
				</xsl:if>
			</xsl:for-each>
		</hazardsIdentification>
	</xsl:template>
	<!--Create the substances node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Substances']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<substances>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:choose>
				<xsl:when test="count($p[count(.|$q) = count($q)]) > 1">
					<xsl:for-each select="$p[count(.|$q) = count($q)]">
						<xsl:if test="position() != 1">
							<substance db="{table:table-cell[2]/text:p}" id="{table:table-cell[3]/text:p}">
								<xsl:if test="table:table-cell[4]/text:p | table:table-cell[6]/text:p">
									<concentration>
										<xsl:if test="table:table-cell[4]/text:p">
											<min unit="{table:table-cell[4]/text:p}">
												<xsl:value-of select="table:table-cell[5]/@office:value"/>
											</min>
										</xsl:if>
										<xsl:if test="table:table-cell[6]/text:p">
											<max unit="{table:table-cell[6]/text:p}">
												<xsl:value-of select="table:table-cell[7]/@office:value"/>
											</max>
										</xsl:if>
									</concentration>
								</xsl:if>
							</substance>
						</xsl:if>
					</xsl:for-each>
				</xsl:when>
				<xsl:otherwise>
					<substance db="" id="" />
				</xsl:otherwise>
			</xsl:choose>
		</substances>
	</xsl:template>
	<!--Create the comment node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Comment']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<comment>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<paragraph pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</paragraph>
				</xsl:if>
			</xsl:for-each>
		</comment>
	</xsl:template>
	<!--Create the firstAidMeasures node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'First aid measures']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<firstAidMeasures>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<step pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</step>
				</xsl:if>
			</xsl:for-each>
		</firstAidMeasures>
	</xsl:template>
	<!--Create the fireFightingMeasures node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Fire fighting measures']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<fireFightingMeasures>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<step pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</step>
				</xsl:if>
			</xsl:for-each>
		</fireFightingMeasures>
	</xsl:template>
	<!--Create the accidentalReleaseMeasures node-->
	<xsl:template
		match="table:table-row[table:table-cell[1]/text:p = 'Accidental release measures']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<accidentalReleaseMeasures>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<step pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</step>
				</xsl:if>
			</xsl:for-each>
		</accidentalReleaseMeasures>
	</xsl:template>
	<!--Create the handlingAndStorage node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Handling and storage']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<handlingAndStorage>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<step pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</step>
				</xsl:if>
			</xsl:for-each>
		</handlingAndStorage>
	</xsl:template>
	<!--Create the personalProtection node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Personal protection']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<personalProtection>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<step pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</step>
				</xsl:if>
			</xsl:for-each>
		</personalProtection>
	</xsl:template>
	<!--Create the properties node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Properties']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<properties>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<paragraph pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</paragraph>
				</xsl:if>
			</xsl:for-each>
		</properties>
	</xsl:template>
	<!--Create the stability node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Stability']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<stability>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<paragraph pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</paragraph>
				</xsl:if>
			</xsl:for-each>
		</stability>
	</xsl:template>
	<!--Create the toxicology node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Toxicology']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<toxicology>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<paragraph pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</paragraph>
				</xsl:if>
			</xsl:for-each>
		</toxicology>
	</xsl:template>
	<!--Create the ecotoxicology node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Ecotoxicology']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<ecotoxicology>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<paragraph pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</paragraph>
				</xsl:if>
			</xsl:for-each>
		</ecotoxicology>
	</xsl:template>
	<!--Create the disposal node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Disposal']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<disposal>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<step pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</step>
				</xsl:if>
			</xsl:for-each>
		</disposal>
	</xsl:template>
	<!--Create the transportation node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Transportation']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<transportation>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<paragraph pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</paragraph>
				</xsl:if>
			</xsl:for-each>
		</transportation>
	</xsl:template>
	<!--Create the regulatoryInformation node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Regulatory information']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[table:table-cell[1]/text:p = 'Other information'][1]/preceding-sibling::*"/>
		<regulatoryInformation>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:apply-templates mode="NestedInRegulatoryInformation"
				select="$p[count(.|$q) = count($q)]"/>
		</regulatoryInformation>
	</xsl:template>
	<!--Create the hazardSymbols node under regulatoryInformation-->
	<xsl:template match="table:table-row[table:table-cell[2]/text:p = 'Hazard symbols']"
		mode="NestedInRegulatoryInformation">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<hazardSymbols>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<hazardSymbol key="{table:table-cell[2]/text:p}"/>
				</xsl:if>
			</xsl:for-each>
		</hazardSymbols>
	</xsl:template>
	<!--Create paragraph nodes under regulatoryInformation-->
	<xsl:template
		match="table:table-row[table:table-cell[2]/text:p = 'Regulatory information paragraphs']"
		mode="NestedInRegulatoryInformation">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<!--The intersecting node set trick from good old Mikey Kay-->
		<xsl:for-each select="$p[count(.|$q) = count($q)]">
			<xsl:if test="position() != 1">
				<paragraph pos="{table:table-cell[2]/text:p}"
					countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
					<title>
						<xsl:value-of select="table:table-cell[5]/text:p"/>
					</title>
					<text>
						<xsl:value-of select="table:table-cell[6]/text:p"/>
					</text>
				</paragraph>
			</xsl:if>
		</xsl:for-each>
	</xsl:template>
	<!--Create the safetyPhrases node under regulatoryInformation-->
	<xsl:template match="table:table-row[table:table-cell[2]/text:p = 'Safety phrases']"
		mode="NestedInRegulatoryInformation">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<safetyPhrases>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<safetyPhrase key="{table:table-cell[2]/text:p}"/>
				</xsl:if>
			</xsl:for-each>
		</safetyPhrases>
	</xsl:template>
	<!--Create the riskPhrases node under regulatoryInformation-->
	<xsl:template match="table:table-row[table:table-cell[2]/text:p = 'Risk phrases']"
		mode="NestedInRegulatoryInformation">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<riskPhrases>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<riskPhrase key="{table:table-cell[2]/text:p}"/>
				</xsl:if>
			</xsl:for-each>
		</riskPhrases>
	</xsl:template>
	<!--Create the otherInformation node-->
	<xsl:template match="table:table-row[table:table-cell[1]/text:p = 'Other information']">
		<xsl:variable name="p" select="./following-sibling::*"/>
		<xsl:variable name="q"
			select="./following-sibling::table:table-row[not(table:table-cell[2]/text:p)][1]/preceding-sibling::*"/>
		<otherInformation>
			<!--The intersecting node set trick from good old Mikey Kay-->
			<xsl:for-each select="$p[count(.|$q) = count($q)]">
				<xsl:if test="position() != 1">
					<paragraph pos="{table:table-cell[2]/text:p}"
						countries="{table:table-cell[3]/text:p}" lang="{table:table-cell[4]/text:p}">
						<title>
							<xsl:value-of select="table:table-cell[5]/text:p"/>
						</title>
						<text>
							<xsl:value-of select="table:table-cell[6]/text:p"/>
						</text>
					</paragraph>
				</xsl:if>
			</xsl:for-each>
		</otherInformation>
	</xsl:template>
	<!--blocking templates-->
	<xsl:template match="*"/>
	<xsl:template match="*" mode="NestedInRegulatoryInformation"/>
	<xsl:template match="text:line-break"/>
	<xsl:template match="office:forms"/>
	<xsl:template match="text:sequence-decls"/>
</xsl:stylesheet>
